//
//  WMEArticleWebViewController.m
//  everyDay_duiTang
//
//  Created by 恩叔 on 16/3/15.
//  Copyright © 2016年 enshu. All rights reserved.
//

#import "WMEArticleWebViewController.h"
#import <Masonry.h>
@interface WMEArticleWebViewController ()
@property (nonatomic, retain)UIWebView *webView;
@end

@implementation WMEArticleWebViewController
- (void)dealloc
{
    [_webView release];
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:_webView];
    __block __typeof(&*self)bs = self;
    [_webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(bs.view.mas_left).with.offset(0);
        make.right.equalTo(bs.view.mas_right).with.offset(0);
        make.top.equalTo(bs.view.mas_top).with.offset(0);
        make.bottom.equalTo(bs.view.mas_bottom).with.offset(120);
    }];

    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.urlStr]]];
    _webView.scrollView.bounces = NO;
    [_webView release];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
